|
TrioCFD 1.9.9_beta
TrioCFD documentation
|
class Char_ptr A character string to name TRUST objects. More...
#include <Char_ptr.h>
Public Member Functions | |
| Char_ptr () | |
| Default constructor. | |
| Char_ptr (const char *nom) | |
| Constructs a name from a character string. The string is copied. | |
| Char_ptr (const Char_ptr &) | |
| Copy constructor of a name. | |
| virtual | ~Char_ptr () |
| Destructor. | |
| void | allocate (int n) |
| operator char * () const | |
| Returns a pointer to the character string of the name. | |
| int | longueur () const |
| Returns the number of characters in the Char_ptr string including the terminating null character. | |
| Char_ptr & | operator= (const char *) |
| Copies the string nom. | |
| Char_ptr & | operator= (const Char_ptr &) |
| Copies the Char_ptr nom. | |
| char * | getChar () |
| const char * | getChar () const |
Protected Attributes | |
| char * | nom_ |
class Char_ptr A character string to name TRUST objects.
Definition at line 27 of file Char_ptr.h.
| Char_ptr::Char_ptr | ( | ) |
| Char_ptr::Char_ptr | ( | const char * | nom | ) |
Constructs a name from a character string. The string is copied.
| (const | char* nom) the character string to use |
Definition at line 42 of file Char_ptr.cpp.
| Char_ptr::Char_ptr | ( | const Char_ptr & | nom | ) |
Copy constructor of a name.
| (const | Char_ptr& nom) the name to use |
Definition at line 52 of file Char_ptr.cpp.
|
virtual |
Destructor.
Definition at line 61 of file Char_ptr.cpp.
| void Char_ptr::allocate | ( | int | n | ) |
Definition at line 119 of file Char_ptr.cpp.
|
inline |
Definition at line 39 of file Char_ptr.h.
|
inline |
Definition at line 43 of file Char_ptr.h.
| int Char_ptr::longueur | ( | ) | const |
Returns the number of characters in the Char_ptr string including the terminating null character.
Example: Char_ptr("hello").longueur() == 6
Definition at line 73 of file Char_ptr.cpp.
| Char_ptr::operator char * | ( | ) | const |
Returns a pointer to the character string of the name.
Definition at line 113 of file Char_ptr.cpp.
| Char_ptr & Char_ptr::operator= | ( | const char * | nom | ) |
Copies the string nom.
Modified by BM so that nom can point to a sub-part of nom_
Definition at line 83 of file Char_ptr.cpp.
|
protected |
Definition at line 49 of file Char_ptr.h.