Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGTextLine Class Reference

Definition at line 21 of file TGText.h.

Public Member Functions

 TGTextLine ()
 Create empty line of text (default ctor).
 
 TGTextLine (const char *string)
 Initialize line of text with a const char*.
 
 TGTextLine (TGTextLine *line)
 Initialize line of text with other line of text (not copy ctor).
 
virtual ~TGTextLine ()
 Delete a line of text.
 
void Clear ()
 Clear a line of text.
 
void DelChar (ULong_t pos)
 Delete a character from the line.
 
void DelText (ULong_t pos, ULong_t length)
 Delete length chars from line starting at position pos.
 
char GetChar (ULong_t pos)
 Get a character at the specified position from the line.
 
ULong_t GetLineLength ()
 
char * GetText () const
 
char * GetText (ULong_t pos, ULong_t length)
 Get length characters from line starting at pos.
 
char * GetWord (ULong_t pos)
 Get word at position. Returned string must be deleted.
 
void InsChar (ULong_t pos, char character)
 Insert a character at the specified position.
 
void InsText (ULong_t pos, const char *text)
 Insert text in line starting at position pos.
 
virtual TClassIsA () const
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Member Functions

 TGTextLine (const TGTextLine &)
 copy constructor
 
TGTextLineoperator= (const TGTextLine &)
 assignment operator
 

Protected Attributes

ULong_t fLength
 length of line
 
TGTextLinefNext
 next line
 
TGTextLinefPrev
 previous line
 
char * fString
 line of text
 

Friends

class TGText
 

#include <TGText.h>

Constructor & Destructor Documentation

◆ TGTextLine() [1/4]

TGTextLine::TGTextLine ( const TGTextLine tl)
protected

copy constructor

Definition at line 85 of file TGText.cxx.

◆ TGTextLine() [2/4]

TGTextLine::TGTextLine ( )

Create empty line of text (default ctor).

Definition at line 47 of file TGText.cxx.

◆ TGTextLine() [3/4]

TGTextLine::TGTextLine ( TGTextLine line)

Initialize line of text with other line of text (not copy ctor).

Definition at line 57 of file TGText.cxx.

◆ TGTextLine() [4/4]

TGTextLine::TGTextLine ( const char *  string)

Initialize line of text with a const char*.

Definition at line 69 of file TGText.cxx.

◆ ~TGTextLine()

TGTextLine::~TGTextLine ( )
virtual

Delete a line of text.

Definition at line 116 of file TGText.cxx.

Member Function Documentation

◆ Class()

static TClass * TGTextLine::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGTextLine::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGTextLine::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 53 of file TGText.h.

◆ Clear()

void TGTextLine::Clear ( )

Clear a line of text.

Definition at line 125 of file TGText.cxx.

◆ DeclFileName()

static const char * TGTextLine::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 53 of file TGText.h.

◆ DelChar()

void TGTextLine::DelChar ( ULong_t  pos)

Delete a character from the line.

Definition at line 263 of file TGText.cxx.

◆ DelText()

void TGTextLine::DelText ( ULong_t  pos,
ULong_t  length 
)

Delete length chars from line starting at position pos.

Definition at line 136 of file TGText.cxx.

◆ GetChar()

char TGTextLine::GetChar ( ULong_t  pos)

Get a character at the specified position from the line.

Returns -1 if pos is out of range.

Definition at line 303 of file TGText.cxx.

◆ GetLineLength()

ULong_t TGTextLine::GetLineLength ( )
inline

Definition at line 41 of file TGText.h.

◆ GetText() [1/2]

char * TGTextLine::GetText ( ) const
inline

Definition at line 46 of file TGText.h.

◆ GetText() [2/2]

char * TGTextLine::GetText ( ULong_t  pos,
ULong_t  length 
)

Get length characters from line starting at pos.

Returns 0 in case pos and length are out of range. The returned string must be freed by the user.

Definition at line 184 of file TGText.cxx.

◆ GetWord()

char * TGTextLine::GetWord ( ULong_t  pos)

Get word at position. Returned string must be deleted.

Definition at line 204 of file TGText.cxx.

◆ InsChar()

void TGTextLine::InsChar ( ULong_t  pos,
char  character 
)

Insert a character at the specified position.

Definition at line 282 of file TGText.cxx.

◆ InsText()

void TGTextLine::InsText ( ULong_t  pos,
const char *  text 
)

Insert text in line starting at position pos.

Definition at line 161 of file TGText.cxx.

◆ IsA()

virtual TClass * TGTextLine::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 53 of file TGText.h.

◆ operator=()

TGTextLine & TGTextLine::operator= ( const TGTextLine tl)
protected

assignment operator

Definition at line 99 of file TGText.cxx.

◆ Streamer()

virtual void TGTextLine::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TGTextLine::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 53 of file TGText.h.

Friends And Related Symbol Documentation

◆ TGText

friend class TGText
friend

Definition at line 23 of file TGText.h.

Member Data Documentation

◆ fLength

ULong_t TGTextLine::fLength
protected

length of line

Definition at line 27 of file TGText.h.

◆ fNext

TGTextLine* TGTextLine::fNext
protected

next line

Definition at line 29 of file TGText.h.

◆ fPrev

TGTextLine* TGTextLine::fPrev
protected

previous line

Definition at line 28 of file TGText.h.

◆ fString

char* TGTextLine::fString
protected

line of text

Definition at line 26 of file TGText.h.

Libraries for TGTextLine:

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