Electroneum
testing::internal::NativeArray< Element > Class Template Reference

#include <gtest-internal.h>

Public Types

typedef Element value_type
 
typedef Element * iterator
 
typedef const Element * const_iterator
 
typedef Element value_type
 
typedef Element * iterator
 
typedef const Element * const_iterator
 

Public Member Functions

 NativeArray (const Element *array, size_t count, RelationToSourceReference)
 
 NativeArray (const Element *array, size_t count, RelationToSourceCopy)
 
 NativeArray (const NativeArray &rhs)
 
 ~NativeArray ()
 
size_t size () const
 
const_iterator begin () const
 
const_iterator end () const
 
bool operator== (const NativeArray &rhs) const
 
 NativeArray (const Element *array, size_t count, RelationToSourceReference)
 
 NativeArray (const Element *array, size_t count, RelationToSourceCopy)
 
 NativeArray (const NativeArray &rhs)
 
 ~NativeArray ()
 
size_t size () const
 
const_iterator begin () const
 
const_iterator end () const
 
bool operator== (const NativeArray &rhs) const
 

Detailed Description

template<typename Element>
class testing::internal::NativeArray< Element >

Definition at line 1034 of file gtest-internal.h.

Member Typedef Documentation

◆ const_iterator [1/2]

template<typename Element >
typedef const Element* testing::internal::NativeArray< Element >::const_iterator

Definition at line 1039 of file gtest-internal.h.

◆ const_iterator [2/2]

template<typename Element >
typedef const Element* testing::internal::NativeArray< Element >::const_iterator

Definition at line 1039 of file gtest-internal.h.

◆ iterator [1/2]

template<typename Element >
typedef Element* testing::internal::NativeArray< Element >::iterator

Definition at line 1038 of file gtest-internal.h.

◆ iterator [2/2]

template<typename Element >
typedef Element* testing::internal::NativeArray< Element >::iterator

Definition at line 1038 of file gtest-internal.h.

◆ value_type [1/2]

template<typename Element >
typedef Element testing::internal::NativeArray< Element >::value_type

Definition at line 1037 of file gtest-internal.h.

◆ value_type [2/2]

template<typename Element >
typedef Element testing::internal::NativeArray< Element >::value_type

Definition at line 1037 of file gtest-internal.h.

Constructor & Destructor Documentation

◆ NativeArray() [1/6]

template<typename Element >
testing::internal::NativeArray< Element >::NativeArray ( const Element *  array,
size_t  count,
RelationToSourceReference   
)
inline

Definition at line 1042 of file gtest-internal.h.

1042  {
1043  InitRef(array, count);
1044  }
mdb_size_t count(MDB_cursor *cur)
Here is the call graph for this function:

◆ NativeArray() [2/6]

template<typename Element >
testing::internal::NativeArray< Element >::NativeArray ( const Element *  array,
size_t  count,
RelationToSourceCopy   
)
inline

Definition at line 1047 of file gtest-internal.h.

1047  {
1048  InitCopy(array, count);
1049  }
mdb_size_t count(MDB_cursor *cur)
Here is the call graph for this function:

◆ NativeArray() [3/6]

template<typename Element >
testing::internal::NativeArray< Element >::NativeArray ( const NativeArray< Element > &  rhs)
inline

Definition at line 1052 of file gtest-internal.h.

1052  {
1053  (this->*rhs.clone_)(rhs.array_, rhs.size_);
1054  }

◆ ~NativeArray() [1/2]

template<typename Element >
testing::internal::NativeArray< Element >::~NativeArray ( )
inline

Definition at line 1056 of file gtest-internal.h.

1056  {
1057  if (clone_ != &NativeArray::InitRef)
1058  delete[] array_;
1059  }

◆ NativeArray() [4/6]

template<typename Element >
testing::internal::NativeArray< Element >::NativeArray ( const Element *  array,
size_t  count,
RelationToSourceReference   
)
inline

Definition at line 1042 of file gtest-internal.h.

1042  {
1043  InitRef(array, count);
1044  }
mdb_size_t count(MDB_cursor *cur)
Here is the call graph for this function:

◆ NativeArray() [5/6]

template<typename Element >
testing::internal::NativeArray< Element >::NativeArray ( const Element *  array,
size_t  count,
RelationToSourceCopy   
)
inline

Definition at line 1047 of file gtest-internal.h.

1047  {
1048  InitCopy(array, count);
1049  }
mdb_size_t count(MDB_cursor *cur)
Here is the call graph for this function:

◆ NativeArray() [6/6]

template<typename Element >
testing::internal::NativeArray< Element >::NativeArray ( const NativeArray< Element > &  rhs)
inline

Definition at line 1052 of file gtest-internal.h.

1052  {
1053  (this->*rhs.clone_)(rhs.array_, rhs.size_);
1054  }

◆ ~NativeArray() [2/2]

template<typename Element >
testing::internal::NativeArray< Element >::~NativeArray ( )
inline

Definition at line 1056 of file gtest-internal.h.

1056  {
1057  if (clone_ != &NativeArray::InitRef)
1058  delete[] array_;
1059  }

Member Function Documentation

◆ begin() [1/2]

template<typename Element >
const_iterator testing::internal::NativeArray< Element >::begin ( void  ) const
inline

Definition at line 1063 of file gtest-internal.h.

1063 { return array_; }
Here is the caller graph for this function:

◆ begin() [2/2]

template<typename Element >
const_iterator testing::internal::NativeArray< Element >::begin ( void  ) const
inline

Definition at line 1063 of file gtest-internal.h.

1063 { return array_; }

◆ end() [1/2]

template<typename Element >
const_iterator testing::internal::NativeArray< Element >::end ( void  ) const
inline

Definition at line 1064 of file gtest-internal.h.

1064 { return array_ + size_; }

◆ end() [2/2]

template<typename Element >
const_iterator testing::internal::NativeArray< Element >::end ( void  ) const
inline

Definition at line 1064 of file gtest-internal.h.

1064 { return array_ + size_; }

◆ operator==() [1/2]

template<typename Element >
bool testing::internal::NativeArray< Element >::operator== ( const NativeArray< Element > &  rhs) const
inline

Definition at line 1065 of file gtest-internal.h.

1065  {
1066  return size() == rhs.size() &&
1067  ArrayEq(begin(), size(), rhs.begin());
1068  }
const_iterator begin() const
bool ArrayEq(const T *lhs, size_t size, const U *rhs)
Here is the call graph for this function:

◆ operator==() [2/2]

template<typename Element >
bool testing::internal::NativeArray< Element >::operator== ( const NativeArray< Element > &  rhs) const
inline

Definition at line 1065 of file gtest-internal.h.

1065  {
1066  return size() == rhs.size() &&
1067  ArrayEq(begin(), size(), rhs.begin());
1068  }
const_iterator begin() const
bool ArrayEq(const T *lhs, size_t size, const U *rhs)
Here is the call graph for this function:

◆ size() [1/2]

template<typename Element >
size_t testing::internal::NativeArray< Element >::size ( void  ) const
inline

Definition at line 1062 of file gtest-internal.h.

1062 { return size_; }
Here is the caller graph for this function:

◆ size() [2/2]

template<typename Element >
size_t testing::internal::NativeArray< Element >::size ( void  ) const
inline

Definition at line 1062 of file gtest-internal.h.

1062 { return size_; }

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