|
Aegis
4.25.D505
|
#include <input.h>
Public Member Functions | |
| ~input () | |
| input () | |
| input (input_ty::pointer arg) | |
| input (const input &arg) | |
| input & | operator= (const input &arg) |
| input_ty::pointer | operator-> () |
| input_ty::pointer | operator-> () const |
| void | close () |
| bool | is_open () const |
| bool | valid () const |
Private Attributes | |
| input_ty::pointer | ref |
Friends | |
| class | input_ty |
The input class is a so-called smart pointer, which automatically keeps track of input usage, and deletes the instance once the last consumer has let it go.
| input::~input | ( | ) |
The destructor.
| input::input | ( | ) |
The default constructor.
This is dangerous. The reference will be NULL, so if you try to dereference it the code will segfault.
| input::input | ( | input_ty::pointer | arg | ) |
The constructor.
| arg | The input stream to be managed. Its reference count will NOT be incrimented, it is assumed you are giving the "dumb" pointer to this "smart pointer" to manage. |
| input::input | ( | const input & | arg | ) |
The copy constructor.
| void input::close | ( | ) |
The close method may be used to delete (actually, decriment the reference count and conditionally delete) the managed input_ty object. Acess to this smart pointer will hereafter get segfaults until another input is assigned to it.
| bool input::is_open | ( | ) | const [inline] |
| input_ty::pointer input::operator-> | ( | ) | [inline] |
| input_ty::pointer input::operator-> | ( | ) | const [inline] |
| bool input::valid | ( | ) | const |
The valid method is used (when debugging) to determine if this object is in a valid state.
input_ty::pointer input::ref [private] |
1.7.6.1