Skip to content

Commit 7349d87

Browse files
committed
Rename typedef
1 parent 529a139 commit 7349d87

File tree

6 files changed

+6
-11
lines changed

6 files changed

+6
-11
lines changed

src/Core/Datatypes/Legacy/Base/TypeName.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ template<class T, class S> std::string find_type_name( std::pair<T,S> *);
110110
class IntVector;
111111
class NrrdData;
112112

113-
using Complex = std::complex<double>;
113+
using complex = std::complex<double>;
114114

115115
template<> SCISHARE std::string find_type_name(float*);
116116
template<> SCISHARE std::string find_type_name(double*);
117-
template<> SCISHARE std::string find_type_name(Complex*);
117+
template<> SCISHARE std::string find_type_name(complex*);
118118
template<> SCISHARE std::string find_type_name(long double*);
119119
template<> SCISHARE std::string find_type_name(short*);
120120
template<> SCISHARE std::string find_type_name(unsigned short*);

src/Core/Datatypes/MatrixFwd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace Datatypes {
5252
class DenseMatrixGeneric;
5353

5454
typedef DenseMatrixGeneric<double> DenseMatrix;
55-
using ComplexDenseMatrix = DenseMatrixGeneric<SCIRun::Complex>;
55+
using ComplexDenseMatrix = DenseMatrixGeneric<SCIRun::complex>;
5656

5757
typedef SharedPointer<DenseMatrix> DenseMatrixHandle;
5858
typedef SharedPointer<const DenseMatrix> DenseMatrixConstHandle;

src/Modules/Basic/ReceiveComplexScalar.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ using namespace SCIRun::Core::Datatypes;
3838
using namespace SCIRun::Core::Algorithms;
3939

4040
ReceiveComplexScalarModule::ReceiveComplexScalarModule()
41-
: Module(ModuleLookupInfo("ReceiveComplexMatrix", "Math", "SCIRun"), false),
42-
latestValue_(-1)
41+
: Module(ModuleLookupInfo("ReceiveComplexMatrix", "Math", "SCIRun"), false)
4342
{
4443
INITIALIZE_PORT(Input);
4544
}

src/Modules/Basic/ReceiveComplexScalar.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ namespace SCIRun {
4545
virtual void execute();
4646
virtual void setStateDefaults() {}
4747

48-
Complex latestReceivedValue() const { return latestValue_; }
49-
5048
INPUT_PORT(0, Input, ComplexDenseMatrix);
51-
private:
52-
Complex latestValue_;
5349
};
5450
}}}
5551

src/Modules/Basic/SendComplexScalar.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void SendComplexScalarModule::execute()
4949
if (needToExecute())
5050
{
5151
ComplexDenseMatrix c(2,2);
52-
c << Complex(1,2), Complex(3,4), Complex(-1,-2), Complex(-3,-4);
52+
c << complex(1,2), complex(3,4), complex(-1,-2), complex(-3,-4);
5353
auto output(boost::make_shared<ComplexDenseMatrix>(c));
5454
sendOutput(Scalar, output);
5555
}

src/Modules/Basic/SendComplexScalar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace Basic {
4747

4848
OUTPUT_PORT(0, Scalar, ComplexDenseMatrix);
4949
private:
50-
Complex data_;
50+
complex data_;
5151
};
5252

5353
}}}

0 commit comments

Comments
 (0)