Public Member Functions | Public Attributes
megatree::LongId< num > Class Template Reference

#include <long_id.h>

List of all members.

Public Member Functions

int getBit (int bit) const
int getBits (uint8_t nr_bits) const
LongId< num > getChild (int child_nr) const
uint8_t getChildNr () const
unsigned getMaxDepth () const
LongId< num > getParent (unsigned int generations=1) const
bool isRoot () const
bool isRootFile () const
bool isValid () const
unsigned int level () const
 LongId (uint64_t value=0)
bool operator!= (const LongId< num > &value) const
bool operator< (const LongId< num > &value) const
LongId< num > & operator= (const LongId< num > &o)
bool operator== (const LongId< num > &value) const
int size () const
void toPath (unsigned folder_depth, std::string &path, std::string &file) const
std::string toString () const

Public Attributes

unsigned int id_level
uint64_t ints [num]

Detailed Description

template<int num>
class megatree::LongId< num >

Definition at line 14 of file long_id.h.


Constructor & Destructor Documentation

template<int num>
megatree::LongId< num >::LongId ( uint64_t  value = 0) [inline]

Definition at line 17 of file long_id.h.


Member Function Documentation

template<int num>
int megatree::LongId< num >::getBit ( int  bit) const [inline]

Definition at line 105 of file long_id.h.

template<int num>
int megatree::LongId< num >::getBits ( uint8_t  nr_bits) const [inline]

Definition at line 111 of file long_id.h.

template<int num>
LongId<num> megatree::LongId< num >::getChild ( int  child_nr) const [inline]

Definition at line 195 of file long_id.h.

template<int num>
uint8_t megatree::LongId< num >::getChildNr ( ) const [inline]

Definition at line 100 of file long_id.h.

template<int num>
unsigned megatree::LongId< num >::getMaxDepth ( ) const [inline]

Definition at line 163 of file long_id.h.

template<int num>
LongId<num> megatree::LongId< num >::getParent ( unsigned int  generations = 1) const [inline]

Definition at line 170 of file long_id.h.

template<int num>
bool megatree::LongId< num >::isRoot ( ) const [inline]

Definition at line 85 of file long_id.h.

template<int num>
bool megatree::LongId< num >::isRootFile ( ) const [inline]

Definition at line 89 of file long_id.h.

template<int num>
bool megatree::LongId< num >::isValid ( ) const [inline]

Definition at line 94 of file long_id.h.

template<int num>
unsigned int megatree::LongId< num >::level ( ) const [inline]

Definition at line 79 of file long_id.h.

template<int num>
bool megatree::LongId< num >::operator!= ( const LongId< num > &  value) const [inline]

Definition at line 72 of file long_id.h.

template<int num>
bool megatree::LongId< num >::operator< ( const LongId< num > &  value) const [inline]

Definition at line 34 of file long_id.h.

template<int num>
LongId<num>& megatree::LongId< num >::operator= ( const LongId< num > &  o) [inline]

Definition at line 63 of file long_id.h.

template<int num>
bool megatree::LongId< num >::operator== ( const LongId< num > &  value) const [inline]

Definition at line 48 of file long_id.h.

template<int num>
int megatree::LongId< num >::size ( ) const [inline]

Definition at line 214 of file long_id.h.

template<int num>
void megatree::LongId< num >::toPath ( unsigned  folder_depth,
std::string &  path,
std::string &  file 
) const [inline]

Definition at line 132 of file long_id.h.

template<int num>
std::string megatree::LongId< num >::toString ( ) const [inline]

Definition at line 117 of file long_id.h.


Member Data Documentation

template<int num>
unsigned int megatree::LongId< num >::id_level

Definition at line 220 of file long_id.h.

template<int num>
uint64_t megatree::LongId< num >::ints[num]

Definition at line 219 of file long_id.h.


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


megatree_cpp
Author(s): Stuart Glaser
autogenerated on Mon Dec 2 2013 13:01:28