libmoost
moost::container::memory_mapped_dataset::section_info Class Reference

#include <dataset.hpp>

List of all members.

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

Detailed Description

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.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

Definition at line 125 of file dataset.hpp.

Here is the caller graph for this function:

template<typename T >
const T moost::container::memory_mapped_dataset::section_info::getattr ( const std::string &  name) const [inline]

Definition at line 142 of file dataset.hpp.

Here is the caller graph for this function:

Definition at line 120 of file dataset.hpp.

Here is the caller graph for this function:

template<class Archive >
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.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
void moost::container::memory_mapped_dataset::section_info::setattr ( const std::string &  name,
const T &  value 
) [inline]

Definition at line 136 of file dataset.hpp.

Here is the caller graph for this function:

const std::string& moost::container::memory_mapped_dataset::section_info::type ( ) const [inline]

Definition at line 154 of file dataset.hpp.


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Definition at line 160 of file dataset.hpp.


Member Data Documentation

Definition at line 170 of file dataset.hpp.

Definition at line 169 of file dataset.hpp.

Definition at line 168 of file dataset.hpp.


The documentation for this class was generated from the following file: