Savarese Software Research Corporation
Properties Class Reference

#include <Properties.h>

Inheritance diagram for Properties:

List of all members.

Public Types

typedef PropTree< std::string,
PropTreePointerOps
< property_type >, Properties
super
typedef std::string key_type
typedef Properties tree_type
typedef PropTreePointerOps
< property_type
operations
typedef operations::value_type value_type
typedef operations::storage_type storage_type
typedef boost::ptr_map
< key_type, tree_type
child_container
typedef child_container::iterator child_container_iterator
typedef
child_container::const_iterator 
child_container_const_iterator
typedef child_container::size_type size_type
typedef std::pair
< child_container_iterator,
bool > 
insert_result_type

Public Member Functions

 Properties ()
 Properties (const value_type &v)
 Properties (const Properties &p)
Propertiesoperator= (const Properties &p)
 Properties (Properties &&p)
Propertiesoperator= (Properties &&p)
bool is_null () const
template<typename... P>
Propertiesset (const char *const val, const P &...p)
template<typename... P>
Propertiesset (const long val, const P &...p)
template<typename... P>
Propertiesset (const unsigned long val, const P &...p)
template<typename... P>
Propertiesset (const char val, const P &...p)
template<typename... P>
Propertiesset (const signed char val, const P &...p)
template<typename... P>
Propertiesset (const unsigned char val, const P &...p)
template<typename... P>
Propertiesset (const bool val, const P &...p)
template<typename... P>
Propertiesset (const std::int32_t val, const P &...p)
template<typename... P>
Propertiesset (const std::uint32_t val, const P &...p)
template<typename... P>
Propertiesset (const std::int16_t val, const P &...p)
template<typename... P>
Propertiesset (const std::uint16_t val, const P &...p)
template<typename... P>
Propertiesset (const std::int64_t val, const P &...p)
template<typename... P>
Propertiesset (const std::uint64_t val, const P &...p)
template<typename... P>
Propertiesset (const float val, const P &...p)
template<typename... P>
Propertiesset (const double val, const P &...p)
template<typename... P>
Propertiesset (const value_type &val, const P &...p)
template<typename Iterator >
Propertiesiterator_set (const char *const val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const long val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const unsigned long val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const char val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const signed char val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const unsigned char val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const bool val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const std::int32_t val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const std::uint32_t val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const std::int64_t val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const std::uint64_t val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const float val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const double val, const Iterator &begin, const Iterator &end)
template<typename Iterator >
Propertiesiterator_set (const value_type &val, const Iterator &begin, const Iterator &end)
template<typename T >
T * get_ptr () const
template<typename T , typename... P>
T * get_ptr (const P &...p) const
property_vectorcreate_property_vector ()
template<typename... P>
property_vectorcreate_property_vector (const P &...p)
primitive_property_vectorcreate_primitive_property_vector ()
template<typename... P>
primitive_property_vectorcreate_primitive_property_vector (const P &...p)
template<typename T >
const T & get (const T &default_value=T()) const
template<typename T , typename... P>
const T & get (const T &default_value, const P &...p) const
template<typename T >
void va_set (const T &val,...)
template<class Archive >
void serialize (Archive &ar, const unsigned int)
void clear ()
bool is_leaf () const
const storage_typevalue () const
storage_typevalue ()
void set_value (const value_type &v)
child_container_const_iterator child_begin () const
child_container_const_iterator child_end () const
tree_typefind (const key_type &key)
tree_typefind (const key_type &key, const P &...p)
const tree_typefind (const key_type &key) const
const tree_typefind (const key_type &key, const P &...p) const
tree_typeset (const value_type &val, const key_type &key)
tree_typeset (const value_type &val, const key_type &key, const P &...p)
tree_typecreate_node (const key_type &key)
tree_typecreate_node (const key_type &key, const P &...p)
size_type erase (const key_type &key)
size_type erase (const key_type &key, const P &...p)
void visit (const Visitor &v)
void visit (const Visitor &v) const
bool operator== (const tree_type &p) const
void merge (tree_type &&p)
void merge (const tree_type &p)
tree_typeva_set (const value_type &val, const std::va_list &ap)
tree_typeva_list_find (const key_type *key, const std::va_list &ap)
tree_typeva_find (const key_type *key,...)
size_type iterator_erase (const Iterator &begin, const Iterator &end)
tree_typeiterator_find (const Iterator &begin, const Iterator &end)
const tree_typeiterator_find (const Iterator &begin, const Iterator &end) const
void save (Archive &ar, const unsigned int) const
void load (Archive &ar, const unsigned int)

Protected Attributes

storage_type _value
child_container _children

Static Protected Attributes

static const operations Value

Detailed Description

Definition at line 578 of file utility/Properties.h.


Member Typedef Documentation

Definition at line 135 of file utility/Properties.h.

typedef child_container::const_iterator PropTree< std::string , PropTreePointerOps< property_type > , Properties >::child_container_const_iterator [inherited]

Definition at line 137 of file utility/Properties.h.

typedef child_container::iterator PropTree< std::string , PropTreePointerOps< property_type > , Properties >::child_container_iterator [inherited]

Definition at line 136 of file utility/Properties.h.

Definition at line 139 of file utility/Properties.h.

Definition at line 129 of file utility/Properties.h.

typedef child_container::size_type PropTree< std::string , PropTreePointerOps< property_type > , Properties >::size_type [inherited]

Definition at line 138 of file utility/Properties.h.

Definition at line 130 of file utility/Properties.h.


Constructor & Destructor Documentation

Properties::Properties ( ) [inline]

Definition at line 586 of file utility/Properties.h.

Properties::Properties ( const value_type v) [inline, explicit]

Definition at line 588 of file utility/Properties.h.


Member Function Documentation

void PropTree< std::string , PropTreePointerOps< property_type > , Properties >::clear ( ) [inline, inherited]

Definition at line 159 of file utility/Properties.h.

References PropTree< Key, Ops, TreeType >::_children.

template<typename... P>
primitive_property_vector& Properties::create_primitive_property_vector ( const P &...  p) [inline]

Definition at line 874 of file utility/Properties.h.

template<typename... P>
property_vector& Properties::create_property_vector ( const P &...  p) [inline]

Definition at line 864 of file utility/Properties.h.

size_type PropTree< std::string , PropTreePointerOps< property_type > , Properties >::erase ( const key_type key) [inline, inherited]

Definition at line 273 of file utility/Properties.h.

References PropTree< Key, Ops, TreeType >::_children.

size_type PropTree< std::string , PropTreePointerOps< property_type > , Properties >::erase ( const key_type key,
const P &...  p 
) [inline, inherited]
tree_type* PropTree< std::string , PropTreePointerOps< property_type > , Properties >::find ( const key_type key) [inline, inherited]

Definition at line 187 of file utility/Properties.h.

References PropTree< Key, Ops, TreeType >::_children.

Referenced by get_ptr().

tree_type* PropTree< std::string , PropTreePointerOps< property_type > , Properties >::find ( const key_type key,
const P &...  p 
) [inline, inherited]

Definition at line 195 of file utility/Properties.h.

References PropTree< Key, Ops, TreeType >::_children.

const tree_type* PropTree< std::string , PropTreePointerOps< property_type > , Properties >::find ( const key_type key) const [inline, inherited]

Definition at line 203 of file utility/Properties.h.

References PropTree< Key, Ops, TreeType >::_children.

const tree_type* PropTree< std::string , PropTreePointerOps< property_type > , Properties >::find ( const key_type key,
const P &...  p 
) const [inline, inherited]

Definition at line 211 of file utility/Properties.h.

References PropTree< Key, Ops, TreeType >::_children.

template<typename T >
const T& Properties::get ( const T &  default_value = T()) const [inline]

Definition at line 879 of file utility/Properties.h.

template<typename T , typename... P>
const T& Properties::get ( const T &  default_value,
const P &...  p 
) const [inline]

Definition at line 890 of file utility/Properties.h.

template<typename T >
T* Properties::get_ptr ( ) const [inline]
template<typename T , typename... P>
T* Properties::get_ptr ( const P &...  p) const [inline]
bool PropTree< std::string , PropTreePointerOps< property_type > , Properties >::is_leaf ( ) const [inline, inherited]

Definition at line 163 of file utility/Properties.h.

References PropTree< Key, Ops, TreeType >::_children.

size_type PropTree< std::string , PropTreePointerOps< property_type > , Properties >::iterator_erase ( const Iterator &  begin,
const Iterator &  end 
) [inline, inherited]
tree_type* PropTree< std::string , PropTreePointerOps< property_type > , Properties >::iterator_find ( const Iterator &  begin,
const Iterator &  end 
) [inline, inherited]

Definition at line 488 of file utility/Properties.h.

References PropTree< Key, Ops, TreeType >::find().

const tree_type* PropTree< std::string , PropTreePointerOps< property_type > , Properties >::iterator_find ( const Iterator &  begin,
const Iterator &  end 
) const [inline, inherited]

Definition at line 502 of file utility/Properties.h.

References PropTree< Key, Ops, TreeType >::find().

template<typename Iterator >
Properties* Properties::iterator_set ( const char *const  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const long  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const unsigned long  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const char  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const signed char  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const unsigned char  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const bool  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const std::int32_t  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const std::uint32_t  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const std::int64_t  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const std::uint64_t  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const float  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const double  val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
template<typename Iterator >
Properties* Properties::iterator_set ( const value_type val,
const Iterator &  begin,
const Iterator &  end 
) [inline]
void PropTree< std::string , PropTreePointerOps< property_type > , Properties >::load ( Archive &  ar,
const unsigned  int 
) [inline, inherited]
void PropTree< std::string , PropTreePointerOps< property_type > , Properties >::save ( Archive &  ar,
const unsigned  int 
) const [inline, inherited]
template<class Archive >
void Properties::serialize ( Archive &  ar,
const unsigned  int 
) [inline]

Definition at line 914 of file utility/Properties.h.

tree_type* PropTree< std::string , PropTreePointerOps< property_type > , Properties >::set ( const value_type val,
const key_type key,
const P &...  p 
) [inline, inherited]
template<typename... P>
Properties* Properties::set ( const long  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const unsigned long  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const char  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const signed char  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const unsigned char  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const bool  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const std::int32_t  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const std::uint32_t  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const std::int16_t  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const std::uint16_t  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const std::int64_t  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const std::uint64_t  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const float  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const double  val,
const P &...  p 
) [inline]
template<typename... P>
Properties* Properties::set ( const value_type val,
const P &...  p 
) [inline]
tree_type* PropTree< std::string , PropTreePointerOps< property_type > , Properties >::va_find ( const key_type key,
  ... 
) [inline, inherited]
tree_type* PropTree< std::string , PropTreePointerOps< property_type > , Properties >::va_list_find ( const key_type key,
const std::va_list &  ap 
) [inline, inherited]

Definition at line 417 of file utility/Properties.h.

References PropTree< Key, Ops, TreeType >::find().

template<typename T >
void Properties::va_set ( const T &  val,
  ... 
) [inline]
const storage_type& PropTree< std::string , PropTreePointerOps< property_type > , Properties >::value ( ) const [inline, inherited]

Definition at line 167 of file utility/Properties.h.

References PropTree< Key, Ops, TreeType >::_value.


Member Data Documentation

Definition at line 146 of file utility/Properties.h.

Referenced by operator=(), and Properties().

Definition at line 145 of file utility/Properties.h.

Referenced by get_ptr(), is_null(), operator=(), and Properties().

const operations PropTree< std::string , PropTreePointerOps< property_type > , Properties >::Value [static, protected, inherited]

Definition at line 143 of file utility/Properties.h.

Referenced by operator=(), and Properties().


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

Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.