X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseArray.cti;h=c6f46caac52c6dc98ab885fde7fd797ff6e5c003;hb=0fff17bd2bcdbb1e91e216bf6e1bebc414713548;hp=c932dd831e50463fefee8a64ce4335292ea42a86;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/ParseArray.cti b/Packets/ParseArray.cti index c932dd8..c6f46ca 100644 --- a/Packets/ParseArray.cti +++ b/Packets/ParseArray.cti @@ -37,31 +37,31 @@ ///////////////////////////////cti.p/////////////////////////////////////// template -prefix_ satcom::pkf::Parse_Array::Parse_Array() +prefix_ senf::Parse_Array::Parse_Array() {} template prefix_ -satcom::pkf::Parse_Array::Parse_Array(Iterator const & i) +senf::Parse_Array::Parse_Array(Iterator const & i) : ParserBase(i) {} template -prefix_ unsigned satcom::pkf::Parse_Array::bytes() +prefix_ unsigned senf::Parse_Array::bytes() { return elements*Parser::bytes(); } template prefix_ bool -satcom::pkf::Parse_Array::check(Iterator const & e) +senf::Parse_Array::check(Iterator const & e) const { return e-this->i() >= bytes(); } template -prefix_ void satcom::pkf::Parse_Array::init() +prefix_ void senf::Parse_Array::init() const { iterator e=end(); @@ -71,47 +71,47 @@ prefix_ void satcom::pkf::Parse_Array::init() /////////////////////////////////////////////////////////////////////////// template -prefix_ typename satcom::pkf::Parse_Array::size_type -satcom::pkf::Parse_Array::size() +prefix_ typename senf::Parse_Array::size_type +senf::Parse_Array::size() { return elements; } template -prefix_ typename satcom::pkf::Parse_Array::iterator -satcom::pkf::Parse_Array::begin() +prefix_ typename senf::Parse_Array::iterator +senf::Parse_Array::begin() const { return iterator(this->i()); } template -prefix_ typename satcom::pkf::Parse_Array::iterator -satcom::pkf::Parse_Array::end() +prefix_ typename senf::Parse_Array::iterator +senf::Parse_Array::end() const { return iterator(this->i()+bytes()); } template -prefix_ typename satcom::pkf::Parse_Array::range_type -satcom::pkf::Parse_Array::range() +prefix_ typename senf::Parse_Array::range_type +senf::Parse_Array::range() const { return std::make_pair(begin(),end()); } template -prefix_ typename satcom::pkf::Parse_Array::iterator -satcom::pkf::Parse_Array::value() +prefix_ typename senf::Parse_Array::iterator +senf::Parse_Array::value() const { return begin(); } template -prefix_ typename satcom::pkf::Parse_Array::value_type -satcom::pkf::Parse_Array::operator[](difference_type i) +prefix_ typename senf::Parse_Array::value_type +senf::Parse_Array::operator[](difference_type i) const { return begin()[i]; @@ -119,8 +119,8 @@ satcom::pkf::Parse_Array::operator[](differenc template template -prefix_ satcom::pkf::Parse_Array const & -satcom::pkf::Parse_Array::operator=(InputIterator const & i) +prefix_ senf::Parse_Array const & +senf::Parse_Array::operator=(InputIterator const & i) { copy_n(i,size(),begin()); } @@ -128,40 +128,40 @@ satcom::pkf::Parse_Array::operator=(InputItera /////////////////////////////////////////////////////////////////////////// template -prefix_ Iterator satcom::pkf::impl::Parse_Array_iterator::raw() +prefix_ Iterator senf::impl::Parse_Array_iterator::raw() const { return i_; } template -prefix_ Parser satcom::pkf::impl::Parse_Array_iterator::operator[](int i) +prefix_ Parser senf::impl::Parse_Array_iterator::operator[](int i) const { return (*this+i).dereference(); } template -prefix_ satcom::pkf::impl::Parse_Array_iterator::Parse_Array_iterator() +prefix_ senf::impl::Parse_Array_iterator::Parse_Array_iterator() : i_() {} template -prefix_ satcom::pkf::impl::Parse_Array_iterator:: +prefix_ senf::impl::Parse_Array_iterator:: Parse_Array_iterator(Iterator const & i) : i_(i) {} template prefix_ Parser -satcom::pkf::impl::Parse_Array_iterator::dereference() +senf::impl::Parse_Array_iterator::dereference() const { return Parser(i_); } template -prefix_ bool satcom::pkf::impl::Parse_Array_iterator:: +prefix_ bool senf::impl::Parse_Array_iterator:: equal(Parse_Array_iterator const & other) const { @@ -169,7 +169,7 @@ equal(Parse_Array_iterator const & other) } template -prefix_ int satcom::pkf::impl::Parse_Array_iterator:: +prefix_ int senf::impl::Parse_Array_iterator:: distance_to(Parse_Array_iterator const & other) const { @@ -177,20 +177,20 @@ distance_to(Parse_Array_iterator const & other) } template -prefix_ void satcom::pkf::impl::Parse_Array_iterator::increment() +prefix_ void senf::impl::Parse_Array_iterator::increment() { i_ += Parser::bytes(); } template -prefix_ void satcom::pkf::impl::Parse_Array_iterator::decrement() +prefix_ void senf::impl::Parse_Array_iterator::decrement() { i_ -= Parser::bytes(); } template prefix_ void -satcom::pkf::impl::Parse_Array_iterator::advance(int n) +senf::impl::Parse_Array_iterator::advance(int n) { i_ += n*Parser::bytes(); } @@ -202,5 +202,5 @@ satcom::pkf::impl::Parse_Array_iterator::advance(int n) // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: