Audacity  3.0.3
Public Types | Public Member Functions | Private Attributes | List of all members
sampleCount Class Reference

#include <Types.h>

Public Types

using type = long long
 

Public Member Functions

 sampleCount ()
 
 sampleCount (type v)
 
 sampleCount (unsigned long long v)
 
 sampleCount (int v)
 
 sampleCount (unsigned v)
 
 sampleCount (long v)
 
 sampleCount (unsigned long v)
 
 sampleCount (float f)
 
 sampleCount (double d)
 
 sampleCount (const sampleCount &)=default
 
sampleCountoperator= (const sampleCount &)=default
 
float as_float () const
 
double as_double () const
 
long long as_long_long () const
 
size_t as_size_t () const
 
sampleCountoperator+= (sampleCount b)
 
sampleCountoperator-= (sampleCount b)
 
sampleCountoperator*= (sampleCount b)
 
sampleCountoperator/= (sampleCount b)
 
sampleCountoperator%= (sampleCount b)
 
sampleCount operator- () const
 
sampleCountoperator++ ()
 
sampleCount operator++ (int)
 
sampleCountoperator-- ()
 
sampleCount operator-- (int)
 

Private Attributes

type value
 

Detailed Description

Definition at line 588 of file Types.h.

Member Typedef Documentation

◆ type

using sampleCount::type = long long

Definition at line 591 of file Types.h.

Constructor & Destructor Documentation

◆ sampleCount() [1/10]

sampleCount::sampleCount ( )
inline

Definition at line 594 of file Types.h.

594 : value { 0 } {}

◆ sampleCount() [2/10]

sampleCount::sampleCount ( type  v)
inline

Definition at line 597 of file Types.h.

597 : value { v } {}

◆ sampleCount() [3/10]

sampleCount::sampleCount ( unsigned long long  v)
inline

Definition at line 598 of file Types.h.

598 : value ( v ) {}

◆ sampleCount() [4/10]

sampleCount::sampleCount ( int  v)
inline

Definition at line 599 of file Types.h.

599 : value { v } {}

◆ sampleCount() [5/10]

sampleCount::sampleCount ( unsigned  v)
inline

Definition at line 600 of file Types.h.

600 : value { v } {}

◆ sampleCount() [6/10]

sampleCount::sampleCount ( long  v)
inline

Definition at line 601 of file Types.h.

601 : value { v } {}

◆ sampleCount() [7/10]

sampleCount::sampleCount ( unsigned long  v)
inline

Definition at line 604 of file Types.h.

604 : value ( v ) {}

◆ sampleCount() [8/10]

sampleCount::sampleCount ( float  f)
inlineexplicit

Definition at line 609 of file Types.h.

609 : value ( f ) {}

◆ sampleCount() [9/10]

sampleCount::sampleCount ( double  d)
inlineexplicit

Definition at line 610 of file Types.h.

610 : value ( d ) {}

◆ sampleCount() [10/10]

sampleCount::sampleCount ( const sampleCount )
default

Member Function Documentation

◆ as_double()

double sampleCount::as_double ( ) const
inline

◆ as_float()

float sampleCount::as_float ( ) const
inline

Definition at line 615 of file Types.h.

615 { return value; }

References value.

Referenced by EffectSBSMS::Process(), EffectFade::ProcessBlock(), and resampleCB().

Here is the caller graph for this function:

◆ as_long_long()

long long sampleCount::as_long_long ( ) const
inline

Definition at line 618 of file Types.h.

618 { return value; }

References value.

Referenced by AUPImportFileHandle::AddSamples(), SpecCache::CalculateOneSpectrum(), CrossFader::CrossFadeMix(), Sequence::DebugPrintf(), ODFlacDecoder::Decode(), AUPImportFileHandle::Import(), operator<(), operator==(), NyquistEffect::ProcessOne(), ODDecodeBlockFile::SaveXML(), NumericConverter::ValueToControls(), and Sequence::WriteXML().

Here is the caller graph for this function:

◆ as_size_t()

size_t sampleCount::as_size_t ( ) const
inline

Definition at line 620 of file Types.h.

620  {
621  wxASSERT(value >= 0);
622  wxASSERT(static_cast<std::make_unsigned<type>::type>(value) <= std::numeric_limits<size_t>::max());
623  return value;
624  }

References value.

Referenced by AUPImportFileHandle::AddSamples(), EffectTruncSilence::DoRemoval(), and Sequence::InsertSilence().

Here is the caller graph for this function:

◆ operator%=()

sampleCount& sampleCount::operator%= ( sampleCount  b)
inline

Definition at line 630 of file Types.h.

630 { value %= b.value; return *this; }

References value.

◆ operator*=()

sampleCount& sampleCount::operator*= ( sampleCount  b)
inline

Definition at line 628 of file Types.h.

628 { value *= b.value; return *this; }

References value.

◆ operator++() [1/2]

sampleCount& sampleCount::operator++ ( )
inline

Definition at line 634 of file Types.h.

634 { ++value; return *this; }

References value.

◆ operator++() [2/2]

sampleCount sampleCount::operator++ ( int  )
inline

Definition at line 635 of file Types.h.

636  { sampleCount result{ *this }; ++value; return result; }

References value.

◆ operator+=()

sampleCount& sampleCount::operator+= ( sampleCount  b)
inline

Definition at line 626 of file Types.h.

626 { value += b.value; return *this; }

References value.

◆ operator-()

sampleCount sampleCount::operator- ( ) const
inline

Definition at line 632 of file Types.h.

632 { return -value; }

References value.

◆ operator--() [1/2]

sampleCount& sampleCount::operator-- ( )
inline

Definition at line 638 of file Types.h.

638 { --value; return *this; }

References value.

◆ operator--() [2/2]

sampleCount sampleCount::operator-- ( int  )
inline

Definition at line 639 of file Types.h.

640  { sampleCount result{ *this }; --value; return result; }

References value.

◆ operator-=()

sampleCount& sampleCount::operator-= ( sampleCount  b)
inline

Definition at line 627 of file Types.h.

627 { value -= b.value; return *this; }

References value.

◆ operator/=()

sampleCount& sampleCount::operator/= ( sampleCount  b)
inline

Definition at line 629 of file Types.h.

629 { value /= b.value; return *this; }

References value.

◆ operator=()

sampleCount& sampleCount::operator= ( const sampleCount )
default

Member Data Documentation

◆ value

type sampleCount::value
private

The documentation for this class was generated from the following file:
sampleCount
Definition: Types.h:589
sampleCount::value
type value
Definition: Types.h:643