library: libCore
#include "TArrayC.h"

TArrayC


class description - source file - inheritance tree (.pdf)

class TArrayC : public TArray

Inheritance Chart:
TArray
<-
TArrayC
<-
TH1C
TH2C
TH3C

    public:
TArrayC() TArrayC(Int_t n) TArrayC(Int_t n, const Char_t* array) TArrayC(const TArrayC& array) virtual ~TArrayC() void AddAt(Char_t c, Int_t i) void Adopt(Int_t n, Char_t* array) Char_t At(Int_t i) const static TClass* Class() void Copy(TArrayC& array) const const Char_t* GetArray() const Char_t* GetArray() Stat_t GetSum() const virtual TClass* IsA() const TArrayC& operator=(const TArrayC& rhs) Char_t& operator[](Int_t i) Char_t operator[](Int_t i) const void Reset(Char_t val = 0) virtual void Set(Int_t n) void Set(Int_t n, const Char_t* array) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    public:
Char_t* fArray [fN] Array of fN chars

Class Description

                                                                      
 TArrayC                                                              
                                                                      
 Array of chars or bytes (8 bits per element).                        
                                                                      


TArrayC()
 Default TArrayC ctor.

TArrayC(Int_t n)
 Create TArrayC object and set array size to n chars.

TArrayC(Int_t n, const Char_t *array)
 Create TArrayC object and initialize it with values of array.

TArrayC(const TArrayC &array) : TArray(array)
 Copy constructor.

~TArrayC()
 Delete TArrayC object.

void Adopt(Int_t n, Char_t *arr)
 Adopt array arr into TArrayC, i.e. don't copy arr but use it directly
 in TArrayC. User may not delete arr, TArrayC dtor will do it.

void AddAt(Char_t c, Int_t i)
 Add char c at position i. Check for out of bounds.

void Set(Int_t n)
 Set size of this array to n chars.
 A new array is created, the old contents copied to the new array,
 then the old array is deleted.
 This function should not be called if the array was declared via Adopt.

void Set(Int_t n, const Char_t *array)
 Set size of this array to n chars and set the contents.
 This function should not be called if the array was declared via Adopt.

void Streamer(TBuffer &b)
 Stream a TArrayC object.



Inline Functions


             TArrayC& operator=(const TArrayC& rhs)
               Char_t At(Int_t i) const
                 void Copy(TArrayC& array) const
        const Char_t* GetArray() const
              Char_t* GetArray()
               Stat_t GetSum() const
                 void Reset(Char_t val = 0)
              Char_t& operator[](Int_t i)
               Char_t operator[](Int_t i) const
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void StreamerNVirtual(TBuffer& b)


Author: Rene Brun 06/03/95
Last update: root/cont:$Name: $:$Id: TArrayC.cxx,v 1.14 2005/11/16 20:07:50 pcanal Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.