libmoost
|
#include <dataset.hpp>
Public Member Functions | |
section_info () | |
section_info (const std::string &type, size_t alignment) | |
boost::uint64_t | offset () const |
size_t | alignment () const |
void | set_offset (boost::uint64_t offset) |
template<typename T > | |
void | setattr (const std::string &name, const T &value) |
template<typename T > | |
const T | getattr (const std::string &name) const |
const std::string & | type () const |
Private Types | |
typedef std::map< std::string, std::string > | attribute_map_type |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Private Attributes | |
std::string | m_type |
boost::uint64_t | m_offset |
const size_t | m_alignment |
attribute_map_type | m_attributes |
Friends | |
class | boost::serialization::access |
Section information
This class is used to store and access information about a single section in the dataset, such as the offset at which the section is located, the type of the section and attributes associated with this section.
Instances of this class can be serialised and deserialised using boost::archive.
This class is usually only used by section accessor classes.
Definition at line 101 of file dataset.hpp.
typedef std::map<std::string, std::string> moost::container::memory_mapped_dataset::section_info::attribute_map_type [private] |
Definition at line 104 of file dataset.hpp.
Definition at line 107 of file dataset.hpp.
moost::container::memory_mapped_dataset::section_info::section_info | ( | const std::string & | type, |
size_t | alignment | ||
) | [inline] |
Definition at line 113 of file dataset.hpp.
size_t moost::container::memory_mapped_dataset::section_info::alignment | ( | ) | const [inline] |
const T moost::container::memory_mapped_dataset::section_info::getattr | ( | const std::string & | name | ) | const [inline] |
boost::uint64_t moost::container::memory_mapped_dataset::section_info::offset | ( | ) | const [inline] |
void moost::container::memory_mapped_dataset::section_info::serialize | ( | Archive & | ar, |
const unsigned | int | ||
) | [inline, private] |
Definition at line 163 of file dataset.hpp.
void moost::container::memory_mapped_dataset::section_info::set_offset | ( | boost::uint64_t | offset | ) | [inline] |
Definition at line 130 of file dataset.hpp.
void moost::container::memory_mapped_dataset::section_info::setattr | ( | const std::string & | name, |
const T & | value | ||
) | [inline] |
const std::string& moost::container::memory_mapped_dataset::section_info::type | ( | ) | const [inline] |
Definition at line 154 of file dataset.hpp.
friend class boost::serialization::access [friend] |
Definition at line 160 of file dataset.hpp.
const size_t moost::container::memory_mapped_dataset::section_info::m_alignment [private] |
Definition at line 170 of file dataset.hpp.
Definition at line 171 of file dataset.hpp.
boost::uint64_t moost::container::memory_mapped_dataset::section_info::m_offset [private] |
Definition at line 169 of file dataset.hpp.
std::string moost::container::memory_mapped_dataset::section_info::m_type [private] |
Definition at line 168 of file dataset.hpp.