Rosetta 3.3
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
utility::tag::Tag Class Reference

#include <Tag.hh>

Inheritance diagram for utility::tag::Tag:
Inheritance graph
[legend]
Collaboration diagram for utility::tag::Tag:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::map< std::string,
std::string > 
options_t
typedef utility::vector0< TagPtrtags_t

Public Member Functions

 Tag ()
void clear ()
size_t size () const
void setName (std::string const &name)
std::string const & getName () const
void addTag (TagPtr const &tag)
utility::vector0< TagPtr > const & getTags () const
utility::vector0< TagPtr > const & getTags (std::string const &name) const
TagPtr const & getTag (std::string const &name) const
bool hasTag (std::string const &name) const
bool hasOption (std::string const &key) const
template<class T >
void setOption (std::string const &key, T const &value)
template<class T >
getOption (std::string const &key, T const &t_default) const
template<class T >
getOption (std::string const &key) const
options_t const & getOptions () const
void setOptions (options_t const &options)
void read (std::istream &in)
void write (std::ostream &out, int num_tabs=0) const
TagPtr const & operator[] (std::string const &key) const
void die_for_unaccessed_options ()
void die_for_unaccessed_options_recursively ()
TagPtr clone () const

Static Public Member Functions

static TagPtr create (std::istream &in)

Static Public Attributes

static size_t num_tags = 0

Member Typedef Documentation

typedef std::map<std::string, std::string > utility::tag::Tag::options_t

Constructor & Destructor Documentation

utility::tag::Tag::Tag ( )

Member Function Documentation

void utility::tag::Tag::addTag ( TagPtr const &  tag)
void utility::tag::Tag::clear ( )
TagPtr utility::tag::Tag::clone ( ) const

References color_pdb::i.

TagPtr utility::tag::Tag::create ( std::istream &  in) [static]

References tag.

void utility::tag::Tag::die_for_unaccessed_options ( )
void utility::tag::Tag::die_for_unaccessed_options_recursively ( ) [inline]
std::string const& utility::tag::Tag::getName ( ) const [inline]
template<class T >
T utility::tag::Tag::getOption ( std::string const &  key,
T const &  t_default 
) const [inline]
template<class T >
T utility::tag::Tag::getOption ( std::string const &  key) const [inline]
options_t const& utility::tag::Tag::getOptions ( ) const [inline]
TagPtr const & utility::tag::Tag::getTag ( std::string const &  name) const

References utility::io::oc::cerr, and runtime_assert.

Referenced by operator[]().

utility::vector0< TagPtr > const & utility::tag::Tag::getTags ( ) const
utility::vector0< TagPtr > const & utility::tag::Tag::getTags ( std::string const &  name) const

References color_pdb::i.

bool utility::tag::Tag::hasOption ( std::string const &  key) const

References color_pdb::i.

bool utility::tag::Tag::hasTag ( std::string const &  name) const
TagPtr const& utility::tag::Tag::operator[] ( std::string const &  key) const [inline]

References getTag().

void utility::tag::Tag::read ( std::istream &  in)
void utility::tag::Tag::setName ( std::string const &  name)

References name.

template<class T >
void utility::tag::Tag::setOption ( std::string const &  key,
T const &  value 
) [inline]
void utility::tag::Tag::setOptions ( options_t const &  options) [inline]

References options.

size_t utility::tag::Tag::size ( ) const

References color_pdb::i.

void utility::tag::Tag::write ( std::ostream &  out,
int  num_tabs = 0 
) const

References color_pdb::i, and tag.

Referenced by utility::tag::operator<<().


Member Data Documentation

size_t utility::tag::Tag::num_tags = 0 [static]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines