#include <FragmentState.h>
Public Member Functions | |
FragmentState () | |
FragmentState (Bundle *bundle) | |
void | add_fragment (Bundle *fragment) |
bool | erase_fragment (Bundle *fragment) |
bool | check_completed () const |
size_t | num_fragments () const |
BundleRef & | bundle () |
BundleList & | fragment_list () |
Private Attributes | |
BundleRef | bundle_ |
The bundle to eb. | |
BundleList | fragments_ |
List of partial fragments. |
Definition at line 30 of file FragmentState.h.
dtn::FragmentState::FragmentState | ( | ) | [inline] |
Definition at line 32 of file FragmentState.h.
dtn::FragmentState::FragmentState | ( | Bundle * | bundle | ) | [inline] |
Definition at line 37 of file FragmentState.h.
void dtn::FragmentState::add_fragment | ( | Bundle * | fragment | ) |
Definition at line 28 of file FragmentState.cc.
References fragments_, dtn::BundleList::insert_sorted(), and dtn::BundleList::SORT_FRAG_OFFSET.
Referenced by dtn::FragmentManager::proactively_fragment(), and dtn::FragmentManager::process_for_reassembly().
BundleRef& dtn::FragmentState::bundle | ( | ) | [inline] |
Definition at line 46 of file FragmentState.h.
References bundle_.
Referenced by dtn::FragmentManager::erase_fragment_state(), and dtn::FragmentManager::process_for_reassembly().
bool dtn::FragmentState::check_completed | ( | ) | const |
Definition at line 42 of file FragmentState.cc.
References ASSERT, dtn::BundleList::begin(), bundle_, dtn::BundleList::end(), dtn::Bundle::frag_offset(), fragments_, dtn::Bundle::is_fragment(), dtn::BundlePayload::length(), dtn::BundleList::lock(), dtn::Bundle::orig_length(), dtn::Bundle::payload(), and dtn::BundleList::size().
Referenced by dtn::FragmentManager::process_for_reassembly().
Definition at line 35 of file FragmentState.cc.
References dtn::BundleList::erase(), and fragments_.
Referenced by dtn::FragmentManager::delete_fragment().
BundleList& dtn::FragmentState::fragment_list | ( | ) | [inline] |
Definition at line 47 of file FragmentState.h.
References fragments_.
Referenced by dtn::FragmentManager::delete_obsoleted_fragments(), and dtn::FragmentManager::process_for_reassembly().
size_t dtn::FragmentState::num_fragments | ( | ) | const [inline] |
Definition at line 45 of file FragmentState.h.
References fragments_, and dtn::BundleList::size().
Referenced by dtn::FragmentManager::delete_fragment(), and dtn::FragmentManager::delete_obsoleted_fragments().
BundleRef dtn::FragmentState::bundle_ [private] |
The bundle to eb.
Definition at line 50 of file FragmentState.h.
Referenced by bundle(), and check_completed().
BundleList dtn::FragmentState::fragments_ [private] |
List of partial fragments.
Definition at line 51 of file FragmentState.h.
Referenced by add_fragment(), check_completed(), erase_fragment(), fragment_list(), and num_fragments().