|
Panda3D
|
This is a list of keywords (see DCKeyword) that may be set on a particular field. More...
#include "dcKeywordList.h"
Public Member Functions | |
| DCKeywordList (const DCKeywordList ©) | |
| bool | add_keyword (const DCKeyword *keyword) |
| Adds the indicated keyword to the list. | |
| void | clear_keywords () |
| Removes all keywords from the field. | |
| bool | compare_keywords (const DCKeywordList &other) const |
| Returns true if this list has the same keywords as the other list, false if some keywords differ. | |
| void | copy_keywords (const DCKeywordList &other) |
| Replaces this keyword list with those from the other list. | |
| void | generate_hash (HashGenerator &hashgen) const |
| Accumulates the properties of these keywords into the hash. | |
| const DCKeyword * | get_keyword (int n) const |
| Returns the nth keyword in the list. | |
| const DCKeyword * | get_keyword_by_name (const std::string &name) const |
| Returns the keyword in the list with the indicated name, or NULL if there is no keyword in the list with that name. | |
| int | get_num_keywords () const |
| Returns the number of keywords in the list. | |
| bool | has_keyword (const DCKeyword *keyword) const |
| Returns true if this list includes the indicated keyword, false otherwise. | |
| bool | has_keyword (const std::string &name) const |
| Returns true if this list includes the indicated keyword, false otherwise. | |
| void | operator= (const DCKeywordList ©) |
| void | output_keywords (std::ostream &out) const |
This is a list of keywords (see DCKeyword) that may be set on a particular field.
Definition at line 26 of file dcKeywordList.h.
| DCKeywordList::DCKeywordList | ( | ) |
Definition at line 21 of file dcKeywordList.cxx.
| DCKeywordList::DCKeywordList | ( | const DCKeywordList & | copy | ) |
Definition at line 30 of file dcKeywordList.cxx.
| DCKeywordList::~DCKeywordList | ( | ) |
Definition at line 51 of file dcKeywordList.cxx.
| bool DCKeywordList::add_keyword | ( | const DCKeyword * | keyword | ) |
Adds the indicated keyword to the list.
Returns true if it is added, false if it was already there.
Definition at line 126 of file dcKeywordList.cxx.
References DCKeyword::get_historical_flag(), and DCKeyword::get_name().
| void DCKeywordList::clear_keywords | ( | ) |
Removes all keywords from the field.
Definition at line 140 of file dcKeywordList.cxx.
| bool DCKeywordList::compare_keywords | ( | const DCKeywordList & | other | ) | const |
Returns true if this list has the same keywords as the other list, false if some keywords differ.
Order is not considered important.
Definition at line 109 of file dcKeywordList.cxx.
| void DCKeywordList::copy_keywords | ( | const DCKeywordList & | other | ) |
Replaces this keyword list with those from the other list.
Definition at line 117 of file dcKeywordList.cxx.
Referenced by DCMolecularField::add_atomic().
| void DCKeywordList::generate_hash | ( | HashGenerator & | hashgen | ) | const |
Accumulates the properties of these keywords into the hash.
Definition at line 161 of file dcKeywordList.cxx.
References HashGenerator::add_int().
Referenced by DCAtomicField::generate_hash(), and DCParameter::generate_hash().
| const DCKeyword * DCKeywordList::get_keyword | ( | int | n | ) | const |
Returns the nth keyword in the list.
Definition at line 84 of file dcKeywordList.cxx.
| const DCKeyword * DCKeywordList::get_keyword_by_name | ( | const std::string & | name | ) | const |
Returns the keyword in the list with the indicated name, or NULL if there is no keyword in the list with that name.
Definition at line 94 of file dcKeywordList.cxx.
| int DCKeywordList::get_num_keywords | ( | ) | const |
Returns the number of keywords in the list.
Definition at line 75 of file dcKeywordList.cxx.
Referenced by DCParameter::generate_hash().
| bool DCKeywordList::has_keyword | ( | const DCKeyword * | keyword | ) | const |
Returns true if this list includes the indicated keyword, false otherwise.
Definition at line 67 of file dcKeywordList.cxx.
References DCKeyword::get_name(), and has_keyword().
| bool DCKeywordList::has_keyword | ( | const std::string & | name | ) | const |
Returns true if this list includes the indicated keyword, false otherwise.
Definition at line 59 of file dcKeywordList.cxx.
Referenced by has_keyword(), DCField::is_airecv(), DCField::is_broadcast(), DCField::is_clrecv(), DCField::is_clsend(), DCField::is_db(), DCField::is_ownrecv(), DCField::is_ownsend(), DCField::is_ram(), and DCField::is_required().
| void DCKeywordList::operator= | ( | const DCKeywordList & | copy | ) |
Definition at line 41 of file dcKeywordList.cxx.
| void DCKeywordList::output_keywords | ( | std::ostream & | out | ) | const |
Definition at line 150 of file dcKeywordList.cxx.